@openpresentation/opf 0.12.2 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -23
- package/dist/{catalogs-BnI7JKcn.d.ts → catalogs-D-yyQWCQ.d.ts} +86 -208
- package/dist/catalogs.d.ts +2 -2
- package/dist/catalogs.js +1 -1
- package/dist/chart-data-B_3z9VTb.d.ts +188 -0
- package/dist/chunk-4LDGKLUC.js +192 -0
- package/dist/{chunk-V2537ENL.js → chunk-4VJDTF55.js} +2 -90
- package/dist/chunk-5ZU6JAPP.js +83 -0
- package/dist/{chunk-HOBSL7AJ.js → chunk-6OXY2CP3.js} +3604 -1644
- package/dist/{chunk-RUC7L5DJ.js → chunk-BFLVSVA7.js} +26 -26
- package/dist/chunk-CSQHPVGL.js +94 -0
- package/dist/{chunk-GJKJL4YY.js → chunk-D3TY4TT6.js} +34 -412
- package/dist/chunk-JDJBDYSR.js +4167 -0
- package/dist/{chunk-4LAM3N6S.js → chunk-LS2FMPI5.js} +1497 -1097
- package/dist/{chunk-SOSOBKQ2.js → chunk-Q2TCMN56.js} +6 -7
- package/dist/chunk-UPQQD7MA.js +1840 -0
- package/dist/{chunk-AUM5MXBR.js → chunk-XIZUK2XM.js} +36 -32
- package/dist/{chunk-E34DJ5LL.js → chunk-XOZ4KMSR.js} +2427 -10820
- package/dist/chunk-Z65B2B77.js +601 -0
- package/dist/{composition-DWbCiMwF.d.ts → composition-_WEwBe2a.d.ts} +744 -26
- package/dist/composition.d.ts +2 -1
- package/dist/composition.js +2 -2
- package/dist/convert.d.ts +9 -4
- package/dist/convert.js +57 -26
- package/dist/data.d.ts +5 -4
- package/dist/data.js +3 -1
- package/dist/diff.d.ts +5 -5
- package/dist/diff.js +6 -603
- package/dist/docs.js +70 -52
- package/dist/examples.d.ts +1 -1
- package/dist/examples.js +1466 -2963
- package/dist/finding-C_por275.d.ts +212 -0
- package/dist/format.d.ts +4 -4
- package/dist/format.js +2 -83
- package/dist/index.d.ts +318 -281
- package/dist/index.js +530 -943
- package/dist/markdown.d.ts +28 -25
- package/dist/markdown.js +8 -1940
- package/dist/pagination-BZpXLvFL.d.ts +119 -0
- package/dist/pagination.d.ts +5 -60
- package/dist/pagination.js +5 -5
- package/dist/patch.d.ts +12 -23
- package/dist/patch.js +5 -5
- package/dist/{presentation-DcF-MZcz.d.ts → presentation-C5eHkevA.d.ts} +516 -499
- package/dist/repo-readme.js +1 -1
- package/dist/{schemas-BSjlG8-R.d.ts → schemas-DDpqAgyS.d.ts} +49 -17
- package/dist/schemas.d.ts +1 -1
- package/dist/schemas.js +1 -1
- package/dist/spec/README.md +10 -5
- package/dist/spec/catalogs/audiences/index.json +2 -50
- package/dist/spec/catalogs/chart-types/100pct-stacked-area.json +21 -0
- package/dist/spec/catalogs/chart-types/100pct-stacked-bar.json +22 -0
- package/dist/spec/catalogs/chart-types/100pct-stacked-column.json +22 -0
- package/dist/spec/catalogs/chart-types/area.json +2 -60
- package/dist/spec/catalogs/chart-types/bar.json +2 -48
- package/dist/spec/catalogs/chart-types/box-and-whisker.json +2 -132
- package/dist/spec/catalogs/chart-types/column.json +2 -52
- package/dist/spec/catalogs/chart-types/combo.json +37 -0
- package/dist/spec/catalogs/chart-types/doughnut.json +2 -40
- package/dist/spec/catalogs/chart-types/filled-radar.json +2 -52
- package/dist/spec/catalogs/chart-types/funnel.json +2 -46
- package/dist/spec/catalogs/chart-types/histogram.json +2 -149
- package/dist/spec/catalogs/chart-types/index.json +50 -520
- package/dist/spec/catalogs/chart-types/line-with-markers.json +2 -60
- package/dist/spec/catalogs/chart-types/line.json +2 -60
- package/dist/spec/catalogs/chart-types/pareto.json +2 -50
- package/dist/spec/catalogs/chart-types/pie.json +2 -40
- package/dist/spec/catalogs/chart-types/radar-with-markers.json +2 -52
- package/dist/spec/catalogs/chart-types/radar.json +2 -52
- package/dist/spec/catalogs/chart-types/scatter.json +2 -73
- package/dist/spec/catalogs/chart-types/stacked-area.json +21 -0
- package/dist/spec/catalogs/chart-types/stacked-bar.json +22 -0
- package/dist/spec/catalogs/chart-types/stacked-column.json +22 -0
- package/dist/spec/catalogs/chart-types/stacked-line-with-markers.json +22 -0
- package/dist/spec/catalogs/chart-types/stacked-line.json +21 -0
- package/dist/spec/catalogs/chart-types/treemap.json +2 -48
- package/dist/spec/catalogs/chart-types/waterfall.json +2 -52
- package/dist/spec/catalogs/chart-types/world.json +2 -64
- package/dist/spec/catalogs/font-schemes/angsana-new.json +2 -2
- package/dist/spec/catalogs/font-schemes/aparajita.json +3 -3
- package/dist/spec/catalogs/font-schemes/aptos.json +1 -1
- package/dist/spec/catalogs/font-schemes/arabic-typesetting.json +2 -2
- package/dist/spec/catalogs/font-schemes/arial.json +1 -1
- package/dist/spec/catalogs/font-schemes/batang.json +2 -2
- package/dist/spec/catalogs/font-schemes/bookman.json +1 -1
- package/dist/spec/catalogs/font-schemes/calibri.json +1 -1
- package/dist/spec/catalogs/font-schemes/century-schoolbook.json +1 -1
- package/dist/spec/catalogs/font-schemes/consolas.json +2 -4
- package/dist/spec/catalogs/font-schemes/constantia.json +1 -1
- package/dist/spec/catalogs/font-schemes/courier-new.json +2 -4
- package/dist/spec/catalogs/font-schemes/daunpenh.json +2 -2
- package/dist/spec/catalogs/font-schemes/david.json +2 -2
- package/dist/spec/catalogs/font-schemes/dilleniaupc.json +2 -2
- package/dist/spec/catalogs/font-schemes/fangsong.json +2 -2
- package/dist/spec/catalogs/font-schemes/garamond.json +1 -1
- package/dist/spec/catalogs/font-schemes/gautami.json +2 -2
- package/dist/spec/catalogs/font-schemes/georgia.json +1 -1
- package/dist/spec/catalogs/font-schemes/gisha.json +3 -3
- package/dist/spec/catalogs/font-schemes/grandview.json +1 -1
- package/dist/spec/catalogs/font-schemes/gungsuh.json +2 -2
- package/dist/spec/catalogs/font-schemes/impact.json +1 -1
- package/dist/spec/catalogs/font-schemes/index.json +1 -1
- package/dist/spec/catalogs/font-schemes/kalinga.json +2 -2
- package/dist/spec/catalogs/font-schemes/kartika.json +2 -2
- package/dist/spec/catalogs/font-schemes/khmer-ui.json +2 -2
- package/dist/spec/catalogs/font-schemes/latha.json +2 -2
- package/dist/spec/catalogs/font-schemes/lucida-sans.json +1 -1
- package/dist/spec/catalogs/font-schemes/malgun-gothic.json +2 -2
- package/dist/spec/catalogs/font-schemes/mangal.json +4 -5
- package/dist/spec/catalogs/font-schemes/meiryo.json +2 -2
- package/dist/spec/catalogs/font-schemes/microsoft-jhenghei.json +2 -2
- package/dist/spec/catalogs/font-schemes/microsoft-yahei.json +5 -5
- package/dist/spec/catalogs/font-schemes/mingliu.json +2 -2
- package/dist/spec/catalogs/font-schemes/miriam.json +2 -2
- package/dist/spec/catalogs/font-schemes/montserrat.json +1 -1
- package/dist/spec/catalogs/font-schemes/ms-mincho.json +2 -2
- package/dist/spec/catalogs/font-schemes/nirmala-ui.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-naksh-arabic.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-nastaliq-urdu.json +3 -3
- package/dist/spec/catalogs/font-schemes/noto-sans-arabic.json +4 -4
- package/dist/spec/catalogs/font-schemes/noto-sans-armenian.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-bengali.json +3 -3
- package/dist/spec/catalogs/font-schemes/noto-sans-devangari.json +3 -3
- package/dist/spec/catalogs/font-schemes/noto-sans-ethiopic.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-georgian.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-gujarati.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-gurmukhi.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-hebrew.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-jp.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-kannada.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-khmer.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-kr.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-malayalam.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-mongolian.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-oriya.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-sc.json +5 -5
- package/dist/spec/catalogs/font-schemes/noto-sans-tamil.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-tc.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-telugu.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans-thai.json +2 -2
- package/dist/spec/catalogs/font-schemes/noto-sans.json +5 -5
- package/dist/spec/catalogs/font-schemes/nyala.json +2 -2
- package/dist/spec/catalogs/font-schemes/open-sans.json +1 -1
- package/dist/spec/catalogs/font-schemes/pmingliu.json +2 -2
- package/dist/spec/catalogs/font-schemes/poppins.json +1 -1
- package/dist/spec/catalogs/font-schemes/pt-serif.json +1 -1
- package/dist/spec/catalogs/font-schemes/raavi.json +2 -2
- package/dist/spec/catalogs/font-schemes/raleway.json +1 -1
- package/dist/spec/catalogs/font-schemes/roboto.json +1 -1
- package/dist/spec/catalogs/font-schemes/rockwell.json +1 -1
- package/dist/spec/catalogs/font-schemes/sakkal-majalla.json +4 -4
- package/dist/spec/catalogs/font-schemes/seaford.json +1 -1
- package/dist/spec/catalogs/font-schemes/segoe-ui-light.json +1 -1
- package/dist/spec/catalogs/font-schemes/segoe-ui.json +1 -1
- package/dist/spec/catalogs/font-schemes/shonar-bangla.json +3 -3
- package/dist/spec/catalogs/font-schemes/shruti.json +2 -2
- package/dist/spec/catalogs/font-schemes/simsun.json +2 -2
- package/dist/spec/catalogs/font-schemes/skeena.json +1 -1
- package/dist/spec/catalogs/font-schemes/sylfaen.json +3 -3
- package/dist/spec/catalogs/font-schemes/tahoma.json +1 -1
- package/dist/spec/catalogs/font-schemes/tenorite.json +1 -1
- package/dist/spec/catalogs/font-schemes/times-new-roman.json +1 -1
- package/dist/spec/catalogs/font-schemes/traditional-arabic.json +4 -4
- package/dist/spec/catalogs/font-schemes/trebuchet-ms.json +1 -1
- package/dist/spec/catalogs/font-schemes/tunga.json +2 -2
- package/dist/spec/catalogs/font-schemes/verdana.json +1 -1
- package/dist/spec/catalogs/font-schemes/vrinda.json +2 -2
- package/dist/spec/catalogs/font-schemes/yu-gothic.json +2 -2
- package/dist/spec/catalogs/layouts/action-plan.json +9 -15
- package/dist/spec/catalogs/layouts/agenda.json +8 -15
- package/dist/spec/catalogs/layouts/appendix-index.json +7 -15
- package/dist/spec/catalogs/layouts/architecture-stack.json +9 -15
- package/dist/spec/catalogs/layouts/assumptions-dependencies.json +9 -15
- package/dist/spec/catalogs/layouts/before-after.json +9 -15
- package/dist/spec/catalogs/layouts/benchmark-target-table.json +9 -15
- package/dist/spec/catalogs/layouts/blank.json +11 -1
- package/dist/spec/catalogs/layouts/bullet-list.json +9 -15
- package/dist/spec/catalogs/layouts/business-model-canvas.json +9 -15
- package/dist/spec/catalogs/layouts/capability-map.json +14 -16
- package/dist/spec/catalogs/layouts/case-study.json +9 -15
- package/dist/spec/catalogs/layouts/chapter-recap.json +8 -15
- package/dist/spec/catalogs/layouts/chart-1x.json +15 -0
- package/dist/spec/catalogs/layouts/chart-2x.json +15 -0
- package/dist/spec/catalogs/layouts/chart-3x.json +15 -0
- package/dist/spec/catalogs/layouts/circular-lifecycle.json +9 -15
- package/dist/spec/catalogs/layouts/code-1x.json +10 -0
- package/dist/spec/catalogs/layouts/comparison.json +9 -15
- package/dist/spec/catalogs/layouts/competitive-landscape.json +14 -16
- package/dist/spec/catalogs/layouts/customer-journey.json +14 -16
- package/dist/spec/catalogs/layouts/customer-logos.json +9 -15
- package/dist/spec/catalogs/layouts/dashboard.json +9 -15
- package/dist/spec/catalogs/layouts/data-visualization.json +9 -15
- package/dist/spec/catalogs/layouts/decision-tree.json +14 -16
- package/dist/spec/catalogs/layouts/detailed-data-table.json +9 -15
- package/dist/spec/catalogs/layouts/ecosystem-map.json +14 -16
- package/dist/spec/catalogs/layouts/executive-decision.json +9 -15
- package/dist/spec/catalogs/layouts/executive-summary.json +9 -15
- package/dist/spec/catalogs/layouts/extract/canonical.json +8 -8
- package/dist/spec/catalogs/layouts/faq.json +9 -15
- package/dist/spec/catalogs/layouts/feature-comparison-matrix.json +9 -15
- package/dist/spec/catalogs/layouts/forecast-scenario.json +9 -15
- package/dist/spec/catalogs/layouts/funnel-pyramid.json +9 -15
- package/dist/spec/catalogs/layouts/gantt-project-plan.json +9 -15
- package/dist/spec/catalogs/layouts/geographic-map.json +13 -15
- package/dist/spec/catalogs/layouts/heatmap-cohort.json +9 -15
- package/dist/spec/catalogs/layouts/hub-and-spoke.json +9 -15
- package/dist/spec/catalogs/layouts/icon-grid.json +14 -16
- package/dist/spec/catalogs/layouts/image-1x.json +11 -1
- package/dist/spec/catalogs/layouts/image-2x.json +12 -2
- package/dist/spec/catalogs/layouts/image-3x.json +13 -3
- package/dist/spec/catalogs/layouts/image-bleed.json +12 -2
- package/dist/spec/catalogs/layouts/image-focus.json +14 -16
- package/dist/spec/catalogs/layouts/index.json +1 -1
- package/dist/spec/catalogs/layouts/key-takeaway.json +8 -15
- package/dist/spec/catalogs/layouts/kpi-scorecard.json +9 -15
- package/dist/spec/catalogs/layouts/list-1x.json +17 -1
- package/dist/spec/catalogs/layouts/list-2x.json +16 -0
- package/dist/spec/catalogs/layouts/list-3x.json +16 -0
- package/dist/spec/catalogs/layouts/list-4x.json +16 -0
- package/dist/spec/catalogs/layouts/list-5x.json +16 -0
- package/dist/spec/catalogs/layouts/list-6x.json +16 -0
- package/dist/spec/catalogs/layouts/logic-tree.json +9 -15
- package/dist/spec/catalogs/layouts/market-size.json +9 -15
- package/dist/spec/catalogs/layouts/matrix-quadrant.json +9 -15
- package/dist/spec/catalogs/layouts/media-1x.json +11 -1
- package/dist/spec/catalogs/layouts/network-dependency-map.json +13 -15
- package/dist/spec/catalogs/layouts/number-1x.json +16 -1
- package/dist/spec/catalogs/layouts/number-2x.json +15 -0
- package/dist/spec/catalogs/layouts/number-3x.json +15 -0
- package/dist/spec/catalogs/layouts/number-4x.json +15 -0
- package/dist/spec/catalogs/layouts/number-5x.json +15 -0
- package/dist/spec/catalogs/layouts/number-6x.json +15 -0
- package/dist/spec/catalogs/layouts/one-column-explainer.json +9 -15
- package/dist/spec/catalogs/layouts/org-chart.json +9 -15
- package/dist/spec/catalogs/layouts/persona-grid.json +14 -16
- package/dist/spec/catalogs/layouts/photo-grid.json +17 -19
- package/dist/spec/catalogs/layouts/pricing-table.json +9 -15
- package/dist/spec/catalogs/layouts/process-flow.json +9 -15
- package/dist/spec/catalogs/layouts/product-feature.json +14 -16
- package/dist/spec/catalogs/layouts/pros-cons.json +9 -15
- package/dist/spec/catalogs/layouts/qa-discussion.json +7 -15
- package/dist/spec/catalogs/layouts/quote-1x.json +11 -1
- package/dist/spec/catalogs/layouts/quote-highlight.json +9 -15
- package/dist/spec/catalogs/layouts/raci-matrix.json +9 -15
- package/dist/spec/catalogs/layouts/risk-heatmap.json +9 -15
- package/dist/spec/catalogs/layouts/roadmap.json +9 -15
- package/dist/spec/catalogs/layouts/screenshot-walkthrough.json +14 -16
- package/dist/spec/catalogs/layouts/section-divider.json +8 -15
- package/dist/spec/catalogs/layouts/single-message-statement.json +8 -15
- package/dist/spec/catalogs/layouts/stats-metrics.json +9 -15
- package/dist/spec/catalogs/layouts/status-rag.json +9 -15
- package/dist/spec/catalogs/layouts/swimlane-process.json +14 -16
- package/dist/spec/catalogs/layouts/swot-analysis.json +9 -15
- package/dist/spec/catalogs/layouts/table-1x.json +10 -0
- package/dist/spec/catalogs/layouts/team-bio.json +14 -16
- package/dist/spec/catalogs/layouts/testimonial-grid.json +9 -15
- package/dist/spec/catalogs/layouts/text-1x.json +11 -1
- package/dist/spec/catalogs/layouts/text-2x.json +10 -0
- package/dist/spec/catalogs/layouts/text-3x.json +10 -0
- package/dist/spec/catalogs/layouts/thank-you-cta.json +8 -15
- package/dist/spec/catalogs/layouts/three-column.json +9 -15
- package/dist/spec/catalogs/layouts/timeline-1x.json +11 -1
- package/dist/spec/catalogs/layouts/timeline.json +9 -15
- package/dist/spec/catalogs/layouts/title-slide.json +8 -15
- package/dist/spec/catalogs/layouts/title-subtitle.json +11 -1
- package/dist/spec/catalogs/layouts/title.json +11 -1
- package/dist/spec/catalogs/layouts/two-column.json +9 -15
- package/dist/spec/catalogs/layouts/venn-overlap.json +9 -15
- package/dist/spec/catalogs/layouts/waterfall-bridge.json +9 -15
- package/dist/spec/catalogs/layouts/wheel-radial.json +9 -15
- package/dist/spec/catalogs/manifest.json +11 -11
- package/dist/spec/catalogs/narratives/board-meeting.json +45 -45
- package/dist/spec/catalogs/narratives/business-narrative.json +19 -19
- package/dist/spec/catalogs/narratives/business-review.json +27 -27
- package/dist/spec/catalogs/narratives/capacity-planning.json +19 -19
- package/dist/spec/catalogs/narratives/challenge-resolution.json +17 -17
- package/dist/spec/catalogs/narratives/change-story.json +13 -13
- package/dist/spec/catalogs/narratives/classic-story.json +17 -17
- package/dist/spec/catalogs/narratives/company-intro.json +21 -21
- package/dist/spec/catalogs/narratives/conference-talk.json +4 -4
- package/dist/spec/catalogs/narratives/data-story.json +13 -14
- package/dist/spec/catalogs/narratives/early-startup-pitch.json +27 -27
- package/dist/spec/catalogs/narratives/educate.json +21 -21
- package/dist/spec/catalogs/narratives/employee-review.json +19 -19
- package/dist/spec/catalogs/narratives/failure-analysis.json +23 -23
- package/dist/spec/catalogs/narratives/focus.json +27 -27
- package/dist/spec/catalogs/narratives/golden-circle.json +4 -4
- package/dist/spec/catalogs/narratives/heros-journey.json +13 -13
- package/dist/spec/catalogs/narratives/index.json +145 -145
- package/dist/spec/catalogs/narratives/innovation.json +21 -21
- package/dist/spec/catalogs/narratives/justice.json +25 -25
- package/dist/spec/catalogs/narratives/marketing-strategy.json +25 -25
- package/dist/spec/catalogs/narratives/performance-improvement-plan.json +19 -19
- package/dist/spec/catalogs/narratives/performance-review.json +25 -25
- package/dist/spec/catalogs/narratives/persuade.json +17 -17
- package/dist/spec/catalogs/narratives/persuasive-sales.json +19 -19
- package/dist/spec/catalogs/narratives/pitch-deck.json +6 -6
- package/dist/spec/catalogs/narratives/problem-solution.json +5 -5
- package/dist/spec/catalogs/narratives/product-launch.json +23 -23
- package/dist/spec/catalogs/narratives/project-proposal.json +23 -23
- package/dist/spec/catalogs/narratives/pyramid-principle.json +9 -9
- package/dist/spec/catalogs/narratives/qbr.json +8 -8
- package/dist/spec/catalogs/narratives/rags-to-riches.json +17 -17
- package/dist/spec/catalogs/narratives/reveal.json +19 -19
- package/dist/spec/catalogs/narratives/scqa.json +4 -4
- package/dist/spec/catalogs/narratives/situation-complication-resolution.json +11 -11
- package/dist/spec/catalogs/narratives/sparkline.json +11 -11
- package/dist/spec/catalogs/narratives/star-method.json +11 -11
- package/dist/spec/catalogs/narratives/status-update.json +15 -15
- package/dist/spec/catalogs/narratives/strategic-advisory.json +17 -17
- package/dist/spec/catalogs/narratives/strategic-narrative.json +4 -4
- package/dist/spec/catalogs/narratives/survey-analysis.json +23 -23
- package/dist/spec/catalogs/narratives/survival-story.json +23 -23
- package/dist/spec/catalogs/narratives/transformation-arc.json +4 -4
- package/dist/spec/catalogs/narratives/trend-analysis.json +17 -17
- package/dist/spec/catalogs/narratives/underdog-victory.json +19 -19
- package/dist/spec/catalogs/narratives/venture-pitch.json +27 -27
- package/dist/spec/catalogs/narratives/vision-roadmap.json +13 -13
- package/dist/spec/catalogs/narratives/weekly-progress.json +23 -23
- package/dist/spec/catalogs/narratives/what-so-what-now-what.json +9 -9
- package/dist/spec/openapi.yaml +2 -5
- package/dist/spec/reference/engine-defaults.json +2 -2
- package/dist/spec/schemas/audience.schema.json +1 -1
- package/dist/spec/schemas/catalog-index.schema.json +2 -2
- package/dist/spec/schemas/chart-type.schema.json +19 -290
- package/dist/spec/schemas/color-scheme.schema.json +20 -12
- package/dist/spec/schemas/finding.schema.json +191 -0
- package/dist/spec/schemas/font-scheme.schema.json +19 -46
- package/dist/spec/schemas/layout.schema.json +100 -159
- package/dist/spec/schemas/narrative.schema.json +17 -25
- package/dist/spec/schemas/opf.schema.json +503 -339
- package/dist/spec/schemas/social-platform.schema.json +1 -26
- package/dist/spec/schemas/theme.schema.json +4 -1
- package/dist/spec-files.d.ts +1 -1
- package/dist/spec-files.js +1 -1
- package/dist/symbol-font-encodings.js +18448 -1
- package/dist/types.d.ts +4 -4
- package/dist/validation-types-zh03LeZy.d.ts +276 -0
- package/dist/validator.d.ts +60 -4
- package/dist/validator.js +4 -4
- package/dist/yaml.d.ts +87 -0
- package/dist/yaml.js +321 -0
- package/package.json +6 -10
- package/dist/audit.d.ts +0 -156
- package/dist/audit.js +0 -7
- package/dist/chunk-6LZK2IZB.js +0 -1690
- package/dist/chunk-FYLJVF7X.js +0 -18448
- package/dist/chunk-JKVKYVWL.js +0 -1332
- package/dist/chunk-MWPMJE6P.js +0 -622
- package/dist/lint.d.ts +0 -70
- package/dist/lint.js +0 -6
- package/dist/spec/catalogs/audiences/customers.json +0 -27
- package/dist/spec/catalogs/audiences/executives.json +0 -27
- package/dist/spec/catalogs/audiences/investors.json +0 -27
- package/dist/spec/catalogs/audiences/marketing-team.json +0 -27
- package/dist/spec/catalogs/audiences/regulators.json +0 -27
- package/dist/spec/catalogs/audiences/sales-team.json +0 -27
- package/dist/spec/catalogs/chart-types/100pct-bullet-bar-2x.json +0 -91
- package/dist/spec/catalogs/chart-types/100pct-bullet-bar-3x.json +0 -103
- package/dist/spec/catalogs/chart-types/100pct-bullet-bar.json +0 -79
- package/dist/spec/catalogs/chart-types/100pct-bullet-column-2x.json +0 -91
- package/dist/spec/catalogs/chart-types/100pct-bullet-column-3x.json +0 -103
- package/dist/spec/catalogs/chart-types/100pct-bullet-column.json +0 -79
- package/dist/spec/catalogs/chart-types/100pct-progress-bar.json +0 -105
- package/dist/spec/catalogs/chart-types/100pct-stacked-area-2x.json +0 -106
- package/dist/spec/catalogs/chart-types/100pct-stacked-area-3x.json +0 -123
- package/dist/spec/catalogs/chart-types/100pct-stacked-bar-2x.json +0 -89
- package/dist/spec/catalogs/chart-types/100pct-stacked-bar-3x.json +0 -100
- package/dist/spec/catalogs/chart-types/100pct-stacked-column-2x.json +0 -95
- package/dist/spec/catalogs/chart-types/100pct-stacked-column-3x.json +0 -108
- package/dist/spec/catalogs/chart-types/australia.json +0 -76
- package/dist/spec/catalogs/chart-types/box-and-whisker-2x.json +0 -136
- package/dist/spec/catalogs/chart-types/box-and-whisker-3x.json +0 -168
- package/dist/spec/catalogs/chart-types/bullet-bar-2x.json +0 -89
- package/dist/spec/catalogs/chart-types/bullet-bar-3x.json +0 -101
- package/dist/spec/catalogs/chart-types/bullet-bar.json +0 -77
- package/dist/spec/catalogs/chart-types/bullet-column-2x.json +0 -89
- package/dist/spec/catalogs/chart-types/bullet-column-3x.json +0 -101
- package/dist/spec/catalogs/chart-types/bullet-column.json +0 -77
- package/dist/spec/catalogs/chart-types/canada.json +0 -86
- package/dist/spec/catalogs/chart-types/clustered-bar-2x.json +0 -89
- package/dist/spec/catalogs/chart-types/clustered-column.json +0 -95
- package/dist/spec/catalogs/chart-types/dot-plot-2x.json +0 -99
- package/dist/spec/catalogs/chart-types/dot-plot-3x.json +0 -124
- package/dist/spec/catalogs/chart-types/dot-plot-4x.json +0 -149
- package/dist/spec/catalogs/chart-types/dot-plot-5x.json +0 -174
- package/dist/spec/catalogs/chart-types/dot-plot-6x.json +0 -199
- package/dist/spec/catalogs/chart-types/dot-plot.json +0 -74
- package/dist/spec/catalogs/chart-types/dumbbell.json +0 -120
- package/dist/spec/catalogs/chart-types/line-2x.json +0 -105
- package/dist/spec/catalogs/chart-types/line-3x.json +0 -127
- package/dist/spec/catalogs/chart-types/line-with-high-low-and-markers.json +0 -144
- package/dist/spec/catalogs/chart-types/line-with-high-low.json +0 -144
- package/dist/spec/catalogs/chart-types/line-with-markers-2x.json +0 -106
- package/dist/spec/catalogs/chart-types/line-with-markers-3x.json +0 -128
- package/dist/spec/catalogs/chart-types/sparkline-2x.json +0 -138
- package/dist/spec/catalogs/chart-types/sparkline-3x.json +0 -174
- package/dist/spec/catalogs/chart-types/sparkline-4x.json +0 -210
- package/dist/spec/catalogs/chart-types/sparkline-5x.json +0 -246
- package/dist/spec/catalogs/chart-types/sparkline-6x.json +0 -282
- package/dist/spec/catalogs/chart-types/sparkline.json +0 -102
- package/dist/spec/catalogs/chart-types/stacked-area-2x.json +0 -106
- package/dist/spec/catalogs/chart-types/stacked-area-3x.json +0 -123
- package/dist/spec/catalogs/chart-types/stacked-bar-2x.json +0 -89
- package/dist/spec/catalogs/chart-types/stacked-bar-3x.json +0 -100
- package/dist/spec/catalogs/chart-types/stacked-column-2x.json +0 -95
- package/dist/spec/catalogs/chart-types/stacked-column-3x.json +0 -108
- package/dist/spec/catalogs/chart-types/stacked-line-2x.json +0 -106
- package/dist/spec/catalogs/chart-types/stacked-line-3x.json +0 -123
- package/dist/spec/catalogs/chart-types/stacked-line-with-markers-2x.json +0 -107
- package/dist/spec/catalogs/chart-types/stacked-line-with-markers-3x.json +0 -124
- package/dist/spec/catalogs/chart-types/treemap-2x.json +0 -101
- package/dist/spec/catalogs/chart-types/treemap-3x.json +0 -122
- package/dist/spec/catalogs/chart-types/united-kingdom.json +0 -68
- package/dist/spec/catalogs/chart-types/united-states.json +0 -82
- package/dist/validator-DfG9yxba.d.ts +0 -172
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
tones,
|
|
36
36
|
catalogs,
|
|
37
37
|
validate,
|
|
38
|
-
|
|
38
|
+
validateCatalogRecord,
|
|
39
39
|
} from "@openpresentation/opf";
|
|
40
40
|
|
|
41
41
|
import type { Presentation } from "@openpresentation/opf";
|
|
@@ -46,8 +46,8 @@ const deck: Presentation = {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
console.log(presentation.$id);
|
|
49
|
-
console.log(
|
|
50
|
-
console.log(
|
|
49
|
+
console.log(validate(deck).valid);
|
|
50
|
+
console.log(validateCatalogRecord("tones", tones[0]).valid);
|
|
51
51
|
console.log(audiences.map((audience) => audience.id));
|
|
52
52
|
console.log(Object.keys(catalogs));
|
|
53
53
|
```
|
|
@@ -58,7 +58,7 @@ Use focused imports when you only need one surface:
|
|
|
58
58
|
import { presentation, audience } from "@openpresentation/opf/schemas";
|
|
59
59
|
import { audiences, tones } from "@openpresentation/opf/catalogs";
|
|
60
60
|
import { specFileEntries } from "@openpresentation/opf/spec-files";
|
|
61
|
-
import { validate, assertValid } from "@openpresentation/opf/validator";
|
|
61
|
+
import { validate, assertValid, validationRules } from "@openpresentation/opf/validator";
|
|
62
62
|
import {
|
|
63
63
|
layoutPreviews,
|
|
64
64
|
getLayoutPreview,
|
|
@@ -67,7 +67,13 @@ import {
|
|
|
67
67
|
import type { Presentation, Audience, Tone } from "@openpresentation/opf/types";
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
The root entry
|
|
70
|
+
The root entry holds the application-level API: schemas, catalogs, validation, variables, pagination, data helpers, font policy, `stats` and `resolveSlideContext`. Prefer the focused subpaths above when a package consumer only needs one surface, so the root bundle's full catalog/schema payload is not loaded unnecessarily.
|
|
71
|
+
|
|
72
|
+
The layout engine's names are not on the root. `composeSlide`, `fitText`, `layoutQuote` and the other `layoutX`/`fitX` functions, numbering, footnotes and citations, colour contrast, code syntax, pattern fills, metric trends, chart options, script fonts and text direction come from `@openpresentation/opf/composition`; the symbol-font tables come from `@openpresentation/opf/symbol-font-encodings`.
|
|
73
|
+
|
|
74
|
+
### Facts, slide context and the fonts handle
|
|
75
|
+
|
|
76
|
+
`stats(presentation, options?)` reports neutral facts about a deck (structure, words, notes, images, charts, tables, datasets, citations, variables, assets, fonts) without composing, measuring or validating; see [the stats guide](../../docs/stats.md). `resolveSlideContext(presentation, index, { fonts })` resolves one slide's canvas, layout, theme and font families (slide design, then deck design, then theme, then the default font scheme) into the `ComposeSlideOptions` that `composeSlide` takes, with `unresolved-font-scheme`, `unresolved-layout` and `unresolved-theme` diagnostics. Deck-level verbs take `{ fonts }`, a handle whose `textMeasurement` is how wide the host's real fonts draw text (`paginate(deck, { fonts })`); the renderer's font loader returns a richer handle that extends it. `composeSlide` itself is engine-level and takes `textMeasurement` and `fontFamilies` (`{ heading, body, code, accent? }`) directly.
|
|
71
77
|
|
|
72
78
|
### Content conversions
|
|
73
79
|
|
|
@@ -75,21 +81,19 @@ The root entry exports every schema, catalog, and validation helper for convenie
|
|
|
75
81
|
|
|
76
82
|
### Markdown and outlines
|
|
77
83
|
|
|
78
|
-
`@openpresentation/opf/markdown` reads and writes a deck as Markdown in a small documented dialect (YAML front matter, `---` between slides, `#` title, `##` subtitle, lists, quotes, tables, images, `chart`, `metric` and `timeline` fences, `Note:` speaker notes). `
|
|
79
|
-
|
|
80
|
-
### Design and accessibility audit
|
|
84
|
+
`@openpresentation/opf/markdown` reads and writes a deck as Markdown in a small documented dialect (YAML front matter, `---` between slides, `#` title, `##` subtitle, lists, quotes, tables, images, `chart`, `metric` and `timeline` fences, `Note:` speaker notes). `fromMarkdown(markdown, { split, defaults, validate })` returns `{ presentation, valid, findings, counts }` with findings (the shared `Finding` format) that carry the line and column of the Markdown; `toMarkdown(presentation, { unsupported })` writes any valid deck, embedding what the dialect has no syntax for as YAML (or dropping it into `report.loss`), and the Markdown it writes converts back to the same deck. Deterministic and offline. Reads front matter with the `yaml` package. See the [Markdown guide](../../docs/markdown.md). Not in releases before the one that lists it in the changelog.
|
|
81
85
|
|
|
82
|
-
|
|
86
|
+
### OPF as YAML
|
|
83
87
|
|
|
84
|
-
|
|
88
|
+
`@openpresentation/opf/yaml` reads and writes a deck as YAML, the authoring form of the same data (JSON stays canonical). `fromYaml(text, { aliases, validate })` reads strict JSON-compatible YAML 1.2 (one document, a mapping at the root, no custom tags, duplicate keys or non-finite numbers; anchors, aliases and merge keys only with `aliases: true`) and returns `{ presentation, valid, findings, counts, schemaValid, checks }`: the `validate` report of the deck, with every finding (the shared `Finding` format, YAML syntax errors as `yaml/<rule>` findings) located at the line and column of the YAML. `toYaml(presentation, { schemaComment })` writes canonical YAML (schema key order, block style, ambiguous strings quoted) that reads back to the same deck, and throws `OPFYamlError` for an invalid one. `parseYamlData` and `scanYamlComments` are the helpers. See [the YAML guide](../../docs/yaml.md).
|
|
85
89
|
|
|
86
|
-
|
|
90
|
+
### Validate (0.14.0)
|
|
87
91
|
|
|
88
|
-
|
|
92
|
+
`validate(input, options?)` is the one checker, from the root and from `@openpresentation/opf/validator`. `input` is a parsed presentation or strict JSON text; the result is a `ValidationReport` whose `findings` (the shared `Finding` format, `spec/schemas/finding.schema.json`) each have a stable `opf/<rule>` id, a severity and one of six categories: `format` (JSON syntax, duplicate keys, schema), `references` (catalog ids, assets, citations, datasets), `policy` (host `contracts`), `accessibility` (contrast, alt text, reading order, links), `layout` (overflow, type size, image resolution, fonts) and `content` (placeholders, empty slides, non-numeric chart cells). `valid` means no finding has severity `error`, which by default only `format`, `references` and `policy` findings can have. Text input adds line and column; `only`, `ignore` and `severity` pick and promote rules or categories; composition is lazy, so `validate(deck, { only: ["format"] })` costs what a schema check costs. Read-only and deterministic: no remote resources are fetched. See [the validate guide](../../docs/validate.md). A clean report does not certify layout, fonts, or native export fidelity.
|
|
89
93
|
|
|
90
94
|
### Patch, diff, merge and format (0.12.0)
|
|
91
95
|
|
|
92
|
-
Added in 0.12.0 (not in 0.11.4 or earlier): `@openpresentation/opf/patch` is the one RFC 6902 implementation the CLI and the editor share (`applyPatch`, `applyPatchWithInverse`, `invertPatch`, strict pointer helpers, optional schema validation of the result); `@openpresentation/opf/diff` has `
|
|
96
|
+
Added in 0.12.0 (not in 0.11.4 or earlier): `@openpresentation/opf/patch` is the one RFC 6902 implementation the CLI and the editor share (`applyPatch`, `applyPatchWithInverse`, `invertPatch`, strict pointer helpers, optional schema validation of the result); `@openpresentation/opf/diff` has `diff` (slide matching by id, content and similarity, moves, a readable report and a JSON Patch) and `merge` (three-way merge with conflict objects that never drop a side); `@openpresentation/opf/format` has `format` (canonical key order and layout, idempotent). See [the guide](../../docs/patch-diff-merge-format.md).
|
|
93
97
|
|
|
94
98
|
### Layout previews
|
|
95
99
|
|
|
@@ -173,17 +177,18 @@ import { repoReadme } from "@openpresentation/opf/repo-readme";
|
|
|
173
177
|
console.log(repoReadme.split("\n").slice(0, 3).join("\n"));
|
|
174
178
|
```
|
|
175
179
|
|
|
176
|
-
Validation
|
|
177
|
-
|
|
178
|
-
`narrative`, `design`, or chart
|
|
179
|
-
`
|
|
180
|
-
|
|
181
|
-
that kind
|
|
180
|
+
Validation reports carry `findings`. A finding with severity `error` is a
|
|
181
|
+
structural problem that makes `valid` false; `warning` and `info` findings are
|
|
182
|
+
advisory, such as an unknown catalog id in `narrative`, `design`, or a chart
|
|
183
|
+
`type` reference (`opf/catalog-reference`) or a missing alt text. An id that a
|
|
184
|
+
matching inline `catalogs.<kind>.records[]` entry defines is known, and a custom
|
|
185
|
+
`catalogs.<kind>.source` exempts that kind's ids from unknown-id warnings
|
|
186
|
+
unless the host loads the source's records and passes them as `catalogs`.
|
|
182
187
|
|
|
183
188
|
```ts
|
|
184
|
-
const
|
|
185
|
-
if (!
|
|
186
|
-
for (const
|
|
189
|
+
const report = validate(deck);
|
|
190
|
+
if (!report.valid) console.error(report.findings.filter((finding) => finding.severity === "error"));
|
|
191
|
+
for (const finding of report.findings) console.warn(finding.ruleId, finding.path, finding.message);
|
|
187
192
|
```
|
|
188
193
|
|
|
189
194
|
Validate catalog records locally:
|
|
@@ -194,7 +199,7 @@ import { audiences, validateCatalogRecord } from "@openpresentation/opf";
|
|
|
194
199
|
for (const record of audiences) {
|
|
195
200
|
const result = validateCatalogRecord("audiences", record);
|
|
196
201
|
if (!result.valid) {
|
|
197
|
-
console.error(result.
|
|
202
|
+
console.error(result.findings);
|
|
198
203
|
}
|
|
199
204
|
}
|
|
200
205
|
```
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as SchemaName } from './schemas-DDpqAgyS.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Schema for audience records in the pptx.gallery library. Each record names an audience archetype (e.g. 'executive', 'engineering-team', 'investor') and carries seniority, technical-fluency, decision-power, and attention-budget hints used by AI-driven generation. Audiences are referenced from OPF documents via audience; the engine resolves the reference against catalogs.audiences (inline) → catalogs.audiences.source → the default catalog at https://www.pptx.gallery/audiences. The audience field also accepts free-form strings; this catalog is for engine-aware audience archetypes that carry generation hints.
|
|
@@ -54,7 +54,7 @@ interface Audience {
|
|
|
54
54
|
*/
|
|
55
55
|
decisionPower?: ("informational" | "advisory" | "decision-maker");
|
|
56
56
|
/**
|
|
57
|
-
* Realistic upper bound on this audience's focused attention for a single presentation, in minutes. Used as a hint when comparing against duration and the resolved narrative's
|
|
57
|
+
* Realistic upper bound on this audience's focused attention for a single presentation, in minutes. Used as a hint when comparing against duration and the resolved narrative's duration range.
|
|
58
58
|
*/
|
|
59
59
|
attentionBudgetMinutes?: number;
|
|
60
60
|
/**
|
|
@@ -314,7 +314,7 @@ interface Theme {
|
|
|
314
314
|
/**
|
|
315
315
|
* Default slide size for this theme. Accepts the same preset values as design.dimensions.preset.
|
|
316
316
|
*/
|
|
317
|
-
dimensions?: ("16:9" | "4:3" | "16:10" | "letter" | "a4" | "widescreen" | "standard");
|
|
317
|
+
dimensions?: ("16:9" | "4:3" | "16:10" | "1:1" | "4:5" | "9:16" | "letter" | "a4" | "widescreen" | "standard");
|
|
318
318
|
/**
|
|
319
319
|
* Free-form labels for filtering and search.
|
|
320
320
|
*/
|
|
@@ -395,68 +395,9 @@ interface Layout {
|
|
|
395
395
|
* Longer prose describing the layout structure and ideal use cases.
|
|
396
396
|
*/
|
|
397
397
|
description?: string;
|
|
398
|
+
design?: DesignHints;
|
|
398
399
|
/**
|
|
399
|
-
*
|
|
400
|
-
*/
|
|
401
|
-
contentType?: ("Title" | "Text" | "List" | "Image" | "Number" | "Metric" | "Chart" | "Table" | "Code" | "Video" | "Quote" | "Timeline");
|
|
402
|
-
/**
|
|
403
|
-
* How many parallel content blocks the layout exposes ('2x' = two-column, '3x' = three-up, etc.).
|
|
404
|
-
*/
|
|
405
|
-
contentMultiple?: ("None" | "1x" | "2x" | "3x" | "4x" | "5x" | "6x");
|
|
406
|
-
/**
|
|
407
|
-
* Default horizontal alignment of the content area.
|
|
408
|
-
*/
|
|
409
|
-
contentAlignment?: ("None" | "Left" | "Center");
|
|
410
|
-
/**
|
|
411
|
-
* Whether the content area is rendered inside a visible box / card.
|
|
412
|
-
*/
|
|
413
|
-
contentBox?: boolean;
|
|
414
|
-
/**
|
|
415
|
-
* For chart layouts, where the primary chart sits relative to the rest of the content.
|
|
416
|
-
*/
|
|
417
|
-
contentTypeChartPrimary?: ("None" | "Top" | "Bottom" | "Left" | "Right");
|
|
418
|
-
/**
|
|
419
|
-
* For image layouts, how the image fills its slot.
|
|
420
|
-
*/
|
|
421
|
-
contentTypeImageFill?: ("None" | "Crop" | "Fit");
|
|
422
|
-
/**
|
|
423
|
-
* For list layouts, how bullets are rendered.
|
|
424
|
-
*/
|
|
425
|
-
contentTypeListBullet?: ("None" | "Character" | "Image");
|
|
426
|
-
/**
|
|
427
|
-
* For list layouts, whether each list item carries a heading.
|
|
428
|
-
*/
|
|
429
|
-
contentTypeListHeading?: boolean;
|
|
430
|
-
/**
|
|
431
|
-
* Whether the layout includes a small slide-level tag / label region above or near the title.
|
|
432
|
-
*/
|
|
433
|
-
slideTag?: boolean;
|
|
434
|
-
/**
|
|
435
|
-
* Whether the layout includes a slide title region.
|
|
436
|
-
*/
|
|
437
|
-
slideTitle?: boolean;
|
|
438
|
-
/**
|
|
439
|
-
* Whether the layout includes a slide-level subtitle or supporting-description region. When placeholders is present, this is true exactly when the layout exposes a placeholder with type 'subtitle'.
|
|
440
|
-
*/
|
|
441
|
-
slideSubtitle?: boolean;
|
|
442
|
-
/**
|
|
443
|
-
* Horizontal alignment of the slide title region.
|
|
444
|
-
*/
|
|
445
|
-
slideTitleAlignment?: ("None" | "Left" | "Center");
|
|
446
|
-
/**
|
|
447
|
-
* Whether the layout includes a dedicated slide-level image region (separate from any content image).
|
|
448
|
-
*/
|
|
449
|
-
slideImage?: boolean;
|
|
450
|
-
/**
|
|
451
|
-
* Where the slide-level image sits relative to the content.
|
|
452
|
-
*/
|
|
453
|
-
slideImageAlignment?: ("None" | "Top" | "Bottom" | "Left" | "Right" | "Background");
|
|
454
|
-
/**
|
|
455
|
-
* Axis along which the layout's primary regions are arranged.
|
|
456
|
-
*/
|
|
457
|
-
slideLayoutDirection?: ("None" | "Horizontal" | "Vertical");
|
|
458
|
-
/**
|
|
459
|
-
* Ordered regions the layout exposes. The engine fills 'title', 'subtitle', and 'tag' placeholders from Slide.title, Slide.subtitle, and Slide.tag. Other placeholders are content-kind hints for renderers and pickers. Slide content itself lives either in root payload fields or promoted region keys on Slide. Chrome — slide number, footer, date — is not included here; it is owned by Design.header / Design.footer.
|
|
400
|
+
* Ordered regions the layout exposes. This is the single source of truth for what the layout holds: the content kind, the number of body regions and whether it has a title, subtitle or tag are derived from it (layoutContent in @openpresentation/opf), never stored separately. The engine fills 'title', 'subtitle' and 'tag' placeholders from Slide.title, Slide.subtitle and Slide.tag. The other placeholders are content-kind regions that composition uses to size the body and that pickers use to match layouts. Slide content itself lives either in root payload fields or promoted region keys on Slide. Chrome (slide number, footer, date) is not included here; it is owned by Design.header / Design.footer.
|
|
460
401
|
*/
|
|
461
402
|
placeholders?: Placeholder[];
|
|
462
403
|
/**
|
|
@@ -485,16 +426,58 @@ interface Layout {
|
|
|
485
426
|
[k: string]: unknown;
|
|
486
427
|
}
|
|
487
428
|
/**
|
|
488
|
-
*
|
|
429
|
+
* The layout's design hints, with the same keys and values as the deck's design and a slide's design (a slide overrides exactly what its layout sets, by the same name). An absent key means the layout has no opinion. Every key is applied from the record as the lowest-precedence default, per key: the slide's design, then the deck's design, then this record's design, then the engine default, so a layout value nobody overrides is honored without copying it anywhere (a layout's composition.mode still ranks above contentDirection; slideImage.position is the fallback position of a slide image the layout reserves). Composition, the renderer and the PPTX exporter all read the one result.
|
|
430
|
+
*/
|
|
431
|
+
interface DesignHints {
|
|
432
|
+
/**
|
|
433
|
+
* Horizontal alignment of the title placeholder.
|
|
434
|
+
*/
|
|
435
|
+
titleAlignment?: ("left" | "center" | "right");
|
|
436
|
+
/**
|
|
437
|
+
* Horizontal alignment of the body regions.
|
|
438
|
+
*/
|
|
439
|
+
contentAlignment?: ("left" | "center" | "right");
|
|
440
|
+
/**
|
|
441
|
+
* Whether the body regions are drawn inside a visible card or surface.
|
|
442
|
+
*/
|
|
443
|
+
contentBox?: boolean;
|
|
444
|
+
/**
|
|
445
|
+
* Axis along which parallel body content is arranged: 'vertical' is a column, 'horizontal' a row. Composition applies it when neither the slide nor this layout's composition sets a mode, below the slide's and the deck's design.contentDirection and above automatic selection.
|
|
446
|
+
*/
|
|
447
|
+
contentDirection?: ("horizontal" | "vertical");
|
|
448
|
+
/**
|
|
449
|
+
* Where the primary chart sits relative to the other body content. Composition applies it below the slide's and the deck's design.chartPrimary, with the semantics described there.
|
|
450
|
+
*/
|
|
451
|
+
chartPrimary?: ("none" | "top" | "bottom" | "left" | "right");
|
|
452
|
+
/**
|
|
453
|
+
* How images fill their region: 'crop' covers the region, 'fit' shows the whole image.
|
|
454
|
+
*/
|
|
455
|
+
imageFill?: ("crop" | "fit");
|
|
456
|
+
/**
|
|
457
|
+
* Marker style of lists: 'character' draws the glyph, 'image' draws the deck's icon logo as a picture bullet.
|
|
458
|
+
*/
|
|
459
|
+
listBullet?: ("character" | "image");
|
|
460
|
+
/**
|
|
461
|
+
* A slide-level image region the layout reserves, separate from any content image. Its presence is what lets a deck-wide design.slideImage apply to slides on this layout. The image itself comes from the slide or the deck design.
|
|
462
|
+
*/
|
|
463
|
+
slideImage?: {
|
|
464
|
+
/**
|
|
465
|
+
* Where the slide-level image sits relative to the content. 'background' is a full-bleed image behind the content; the other positions give the image a band along that edge. Used when the slide's or deck's design.slideImage gives no position.
|
|
466
|
+
*/
|
|
467
|
+
position: ("background" | "top" | "bottom" | "left" | "right");
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* A single region inside a slide layout. Title, subtitle, and tag placeholders bind to the corresponding Slide fields; every other placeholder describes the content kind that region holds. The array order in the surrounding 'placeholders' field preserves layout region order.
|
|
489
472
|
*
|
|
490
473
|
* This interface was referenced by `Layout`'s JSON-Schema
|
|
491
474
|
* via the `definition` "Placeholder".
|
|
492
475
|
*/
|
|
493
476
|
interface Placeholder {
|
|
494
477
|
/**
|
|
495
|
-
*
|
|
478
|
+
* The content kind of the region. This is the one OPF content-kind vocabulary: the same words name a slide's payload fields (text, items, image, video, chart, table, code, metric, quote, timeline). 'title', 'subtitle' and 'tag' are the heading kinds and bind to Slide.title, Slide.subtitle and Slide.tag. 'text' holds text and bullets; 'list' holds items. 'image' is filled by an image payload and 'video' by a video payload. 'metric', 'quote', 'timeline', 'chart', 'table' and 'code' are filled by the payload of the same name; a metric region shows the metric payload with its optional label, description, unit, delta, trend and sentiment.
|
|
496
479
|
*/
|
|
497
|
-
type: ("title" | "subtitle" | "tag" | "text" | "
|
|
480
|
+
type: ("title" | "subtitle" | "tag" | "text" | "list" | "image" | "video" | "chart" | "table" | "code" | "metric" | "quote" | "timeline");
|
|
498
481
|
[k: string]: unknown;
|
|
499
482
|
}
|
|
500
483
|
/**
|
|
@@ -538,7 +521,7 @@ interface Composition {
|
|
|
538
521
|
}
|
|
539
522
|
|
|
540
523
|
/**
|
|
541
|
-
* Schema for chart-type records in the pptx.gallery catalog. The bundled catalog holds one record per chart type that Aspose.Slides officially supports (see mappings.renderers["aspose-slides"].chartType). Each record
|
|
524
|
+
* Schema for chart-type records in the pptx.gallery catalog. The bundled catalog holds one record per chart type that Aspose.Slides officially supports (see mappings.renderers["aspose-slides"].chartType), plus the column-and-line combination 'combo' (mappings.openxml.composition "mixed"). Each record names a chart variant, its Open XML mapping, how many data series it expects and how pickers group it. Chart types are referenced from OPF chart content payloads; the engine resolves the reference against catalogs.chartTypes (inline) -> catalogs.chartTypes.source -> the default catalog at https://www.pptx.gallery/chart-types.
|
|
542
525
|
*/
|
|
543
526
|
interface ChartType {
|
|
544
527
|
/**
|
|
@@ -546,17 +529,13 @@ interface ChartType {
|
|
|
546
529
|
*/
|
|
547
530
|
$schema: "https://openpresentation.org/schema/opf-chart-type/v1";
|
|
548
531
|
/**
|
|
549
|
-
* Stable slug used by OPF documents to reference this chart type. Lowercase kebab-case. Chart type ids may start with a digit (e.g., '100pct-stacked-column', '3d-column') to mirror conventional chart naming.
|
|
532
|
+
* Stable slug used by OPF documents to reference this chart type (`chart.type`). Lowercase kebab-case. Chart type ids may start with a digit (e.g., '100pct-stacked-column', '3d-column') to mirror conventional chart naming.
|
|
550
533
|
*/
|
|
551
534
|
id: string;
|
|
552
535
|
/**
|
|
553
|
-
*
|
|
536
|
+
* Human-readable name of the chart type, as a chart picker shows it.
|
|
554
537
|
*/
|
|
555
538
|
name: string;
|
|
556
|
-
/**
|
|
557
|
-
* Human-readable label shown in chart pickers.
|
|
558
|
-
*/
|
|
559
|
-
label?: string;
|
|
560
539
|
/**
|
|
561
540
|
* One-sentence positioning: when to reach for this chart variant.
|
|
562
541
|
*/
|
|
@@ -568,7 +547,7 @@ interface ChartType {
|
|
|
568
547
|
mappings: ChartTypeMappings;
|
|
569
548
|
deprecation?: ChartTypeDeprecation;
|
|
570
549
|
/**
|
|
571
|
-
* Top-level grouping in the chart picker
|
|
550
|
+
* Top-level grouping in the chart picker.
|
|
572
551
|
*/
|
|
573
552
|
group?: string;
|
|
574
553
|
/**
|
|
@@ -576,46 +555,13 @@ interface ChartType {
|
|
|
576
555
|
*/
|
|
577
556
|
groupSort?: number;
|
|
578
557
|
/**
|
|
579
|
-
* Shape of the underlying data: a flat series ('simple'), one with engine-side calculation ('calculated'), parent-child rows ('hierarchical'), or pre-normalized rows ('normalized').
|
|
558
|
+
* Shape of the underlying data: a flat series ('simple'), one with engine-side calculation ('calculated'), parent-child rows ('hierarchical'), or pre-normalized rows ('normalized'). The editor offers only 'simple' types as switch targets for a chart's existing data.
|
|
580
559
|
*/
|
|
581
560
|
complexity?: ("simple" | "calculated" | "hierarchical" | "normalized");
|
|
582
561
|
/**
|
|
583
|
-
* Number of data series this chart type expects.
|
|
562
|
+
* Number of data series this chart type expects: exactly that many, except that a stacked or percent-stacked type and a combination (composition 'mixed', such as combo) expect at least that many. The editor offers a type that expects more than one series only for data with a fitting number of value columns; a one-series type fits one value column, and column, bar, line, area and radar types fit any number.
|
|
584
563
|
*/
|
|
585
564
|
series?: number;
|
|
586
|
-
/**
|
|
587
|
-
* Number of category labels this chart type expects on the primary axis.
|
|
588
|
-
*/
|
|
589
|
-
categories?: number;
|
|
590
|
-
/**
|
|
591
|
-
* Number of series groups (axis bands) this chart type uses; >1 for combo or banded charts.
|
|
592
|
-
*/
|
|
593
|
-
seriesGroups?: number;
|
|
594
|
-
/**
|
|
595
|
-
* Whether the chart type uses a secondary category axis.
|
|
596
|
-
*/
|
|
597
|
-
useSecondaryCategories?: boolean;
|
|
598
|
-
/**
|
|
599
|
-
* A1 reference to the source range in the embedded workbook.
|
|
600
|
-
*/
|
|
601
|
-
workbookRange?: string;
|
|
602
|
-
/**
|
|
603
|
-
* Column header names of the embedded workbook, in left-to-right order.
|
|
604
|
-
*/
|
|
605
|
-
columns?: string[];
|
|
606
|
-
/**
|
|
607
|
-
* Per-column metadata describing the role and position of each column in the workbook source.
|
|
608
|
-
*/
|
|
609
|
-
dataColumns?: ChartDataColumn[];
|
|
610
|
-
/**
|
|
611
|
-
* Optional auxiliary column names used by calculated or banded charts (e.g., 'Excellent', 'Good', 'Fair', 'Poor' for a bullet chart).
|
|
612
|
-
*/
|
|
613
|
-
helperColumns?: string[];
|
|
614
|
-
sampleData?: ChartSampleData;
|
|
615
|
-
/**
|
|
616
|
-
* Source slide number in the original chart-gallery deck. Carried for traceability.
|
|
617
|
-
*/
|
|
618
|
-
slideNumber?: number;
|
|
619
565
|
/**
|
|
620
566
|
* Free-form labels for filtering and search.
|
|
621
567
|
*/
|
|
@@ -646,7 +592,7 @@ interface ChartType {
|
|
|
646
592
|
*/
|
|
647
593
|
[k: string]: {
|
|
648
594
|
[k: string]: unknown;
|
|
649
|
-
} | "https://openpresentation.org/schema/opf-chart-type/v1" | string | ChartTypeMappings | ChartTypeDeprecation | number | "simple" | "calculated" | "hierarchical" | "normalized" |
|
|
595
|
+
} | "https://openpresentation.org/schema/opf-chart-type/v1" | string | ChartTypeMappings | ChartTypeDeprecation | number | "simple" | "calculated" | "hierarchical" | "normalized" | string[] | {
|
|
650
596
|
/**
|
|
651
597
|
* Main preview image (PNG/JPG). Used as the primary visual in picker UIs and previews of the record.
|
|
652
598
|
*/
|
|
@@ -668,7 +614,7 @@ interface ChartType {
|
|
|
668
614
|
interface ChartTypeMappings {
|
|
669
615
|
openxml: OpenXmlChartMapping;
|
|
670
616
|
/**
|
|
671
|
-
* Optional renderer-specific mappings. Keys are renderer ids; values are intentionally opaque to OPF. The bundled catalog records the matching Aspose.Slides ChartType enumeration member under the "aspose-slides" key, e.g. {"aspose-slides": {"chartType": "StackedColumn"}}.
|
|
617
|
+
* Optional renderer-specific mappings. Keys are renderer ids; values are intentionally opaque to OPF. The bundled catalog records the matching Aspose.Slides ChartType enumeration member under the "aspose-slides" key, e.g. {"aspose-slides": {"chartType": "StackedColumn"}}; a mixed composition names the ChartType it starts from and the series type it switches series to, e.g. {"chartType": "ClusteredColumn", "lineSeriesType": "LineWithMarkers"}.
|
|
672
618
|
*/
|
|
673
619
|
renderers?: {
|
|
674
620
|
[k: string]: {
|
|
@@ -768,7 +714,7 @@ interface OpenXmlChartMapping1 {
|
|
|
768
714
|
notes?: string;
|
|
769
715
|
}
|
|
770
716
|
/**
|
|
771
|
-
* Present when this chart type is deprecated.
|
|
717
|
+
* Present when this chart type is deprecated. A deprecated record stays resolvable so existing documents keep validating, validators warn when a document references it, and pickers and generators should not offer it. The bundled default catalog holds no deprecated records; a publisher or an inline `catalogs.chartTypes.records` entry can still use the field.
|
|
772
718
|
*/
|
|
773
719
|
interface ChartTypeDeprecation {
|
|
774
720
|
/**
|
|
@@ -784,48 +730,9 @@ interface ChartTypeDeprecation {
|
|
|
784
730
|
*/
|
|
785
731
|
removal?: string;
|
|
786
732
|
}
|
|
787
|
-
/**
|
|
788
|
-
* One column of the embedded chart workbook, annotated with its role and grid position.
|
|
789
|
-
*
|
|
790
|
-
* This interface was referenced by `ChartType`'s JSON-Schema
|
|
791
|
-
* via the `definition` "ChartDataColumn".
|
|
792
|
-
*/
|
|
793
|
-
interface ChartDataColumn {
|
|
794
|
-
/**
|
|
795
|
-
* Column header name (e.g. 'Series 1', 'Value', 'Level1', 'Level2').
|
|
796
|
-
*/
|
|
797
|
-
name: string;
|
|
798
|
-
/**
|
|
799
|
-
* Role this column plays: a category label (axis tick), a series (plotted values), or a helper (calculated/auxiliary).
|
|
800
|
-
*/
|
|
801
|
-
role: ("categoryLabel" | "series" | "helper");
|
|
802
|
-
/**
|
|
803
|
-
* Cell value type for the column.
|
|
804
|
-
*/
|
|
805
|
-
type: ("string" | "number");
|
|
806
|
-
/**
|
|
807
|
-
* Grid position of the column header in the source workbook, as 'row<N>_col<M>' (zero-indexed).
|
|
808
|
-
*/
|
|
809
|
-
position?: string;
|
|
810
|
-
[k: string]: unknown;
|
|
811
|
-
}
|
|
812
|
-
/**
|
|
813
|
-
* Inline sample dataset for previews and pickers.
|
|
814
|
-
*/
|
|
815
|
-
interface ChartSampleData {
|
|
816
|
-
/**
|
|
817
|
-
* Header row labels. The first cell typically labels the series column; the rest are category labels.
|
|
818
|
-
*/
|
|
819
|
-
headers: string[];
|
|
820
|
-
/**
|
|
821
|
-
* Two-dimensional sample data. Each row aligns by index with the headers — first cell is the row label, remaining cells are values.
|
|
822
|
-
*/
|
|
823
|
-
rows: (string | number)[][];
|
|
824
|
-
[k: string]: unknown;
|
|
825
|
-
}
|
|
826
733
|
|
|
827
734
|
/**
|
|
828
|
-
* Schema for narrative template files in the openpresentation.org catalog.
|
|
735
|
+
* Schema for narrative template files in the openpresentation.org catalog. A narrative is a plan: a named story arc (e.g. 'problem-solution', 'scqa') as an ordered list of beats, each saying what its slide must do. A document points at one with the string 'narrative' (a catalog id, an HTTPS URL or a 'pkg:' reference) and links its slides to beats with 'slides[].beat'. A custom narrative is a record in 'catalogs.narratives.records'. Core validate warns about a 'slides[].beat' id the resolved narrative does not define (opf/unknown-beat) and about a root 'duration' outside this record's 'duration' range (opf/duration-outside-narrative), and reports a beat no slide references (opf/unused-beat).
|
|
829
736
|
*/
|
|
830
737
|
interface Narrative {
|
|
831
738
|
$schema: "https://openpresentation.org/schema/opf-narrative/v1";
|
|
@@ -867,12 +774,17 @@ interface Narrative {
|
|
|
867
774
|
*/
|
|
868
775
|
audienceFit?: string[];
|
|
869
776
|
/**
|
|
870
|
-
* Typical talk
|
|
777
|
+
* Typical talk length this narrative suits, as a range in minutes. A deck's own target is the root 'duration' (one number); core validate warns when that target lies outside this range, and when 'min' is greater than 'max'.
|
|
871
778
|
*/
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
779
|
+
duration?: {
|
|
780
|
+
/**
|
|
781
|
+
* Shortest talk length, in minutes, this narrative suits.
|
|
782
|
+
*/
|
|
783
|
+
min?: number;
|
|
784
|
+
/**
|
|
785
|
+
* Longest talk length, in minutes, this narrative suits.
|
|
786
|
+
*/
|
|
787
|
+
max?: number;
|
|
876
788
|
};
|
|
877
789
|
/**
|
|
878
790
|
* Free-form labels for filtering and search, e.g. ['business', 'pitch', 'internal'].
|
|
@@ -905,7 +817,7 @@ interface Narrative {
|
|
|
905
817
|
[k: string]: unknown;
|
|
906
818
|
}
|
|
907
819
|
/**
|
|
908
|
-
* A single narrative beat — a labeled segment of the story arc with a specific dramatic purpose.
|
|
820
|
+
* A single narrative beat — a labeled segment of the story arc with a specific dramatic purpose. One beat is one slide: 'type' is that slide's Slide.type and 'layout' is its Slide.layout, so a planner copies them straight into a skeleton deck. Split a heavy beat into several beats rather than giving it several slides.
|
|
909
821
|
*
|
|
910
822
|
* This interface was referenced by `Narrative`'s JSON-Schema
|
|
911
823
|
* via the `definition` "Beat".
|
|
@@ -928,26 +840,22 @@ interface Beat {
|
|
|
928
840
|
*/
|
|
929
841
|
instructions?: string;
|
|
930
842
|
/**
|
|
931
|
-
*
|
|
932
|
-
*/
|
|
933
|
-
slideCount?: number;
|
|
934
|
-
/**
|
|
935
|
-
* Default content kind for the beat's slide. Uses ContentPayload.type names to help engines choose a layout. The legacy shape value is retained for compatibility and requests an image representation; it is not a native ContentPayload type.
|
|
843
|
+
* Default content kind for the beat's slide: the same values as Slide.type. Helps engines and planners choose a layout when only the beat is known.
|
|
936
844
|
*/
|
|
937
|
-
|
|
845
|
+
type?: ("text" | "list" | "image" | "video" | "chart" | "table" | "code" | "metric" | "quote" | "timeline");
|
|
938
846
|
/**
|
|
939
|
-
* Suggested layout id for the beat's
|
|
847
|
+
* Suggested layout id for the beat's slide, e.g. 'section-divider', 'title-slide', 'text-left'. Resolves the same way as Slide.layout — against catalogs.layouts and the default catalog at https://www.pptx.gallery/layouts.
|
|
940
848
|
*/
|
|
941
|
-
|
|
849
|
+
layout?: string;
|
|
942
850
|
/**
|
|
943
|
-
* Optional speaker or thinking cues
|
|
851
|
+
* Optional speaker or thinking cues for the beat: questions the slide should answer. A planner or author turns them into the slide's notes; no engine copies them there on its own.
|
|
944
852
|
*/
|
|
945
853
|
thoughtCues?: string[];
|
|
946
854
|
[k: string]: unknown;
|
|
947
855
|
}
|
|
948
856
|
|
|
949
857
|
/**
|
|
950
|
-
* Schema for social-platform records in the pptx.gallery library. Each record describes a single social-media platform — its base URL, profile-URL pattern, handle prefix, brand color
|
|
858
|
+
* Schema for social-platform records in the pptx.gallery library. Each record describes a single social-media platform — its base URL, profile-URL pattern, handle prefix, and brand color. Records are referenced from OPF documents indirectly: the property keys of any Socials object (Organization.socials, Speaker.socials) match record ids, and engines use the catalog record's URL patterns and handle prefix to format and link the profile URL. The brand color is catalog metadata for authoring UIs: engines (opf-render, opf-pptx) render the profile URL, not brand colors. The engine resolves references against catalogs.socialPlatforms (inline) → catalogs.socialPlatforms.source → the default catalog at https://www.pptx.gallery/social-platforms.
|
|
951
859
|
*/
|
|
952
860
|
interface SocialPlatform {
|
|
953
861
|
/**
|
|
@@ -1011,18 +919,6 @@ interface SocialPlatform {
|
|
|
1011
919
|
* Brand color (hex) for branded icon chips, link styling, or section accents in authoring UIs. Catalog metadata: engines do not draw it.
|
|
1012
920
|
*/
|
|
1013
921
|
brandColor?: string;
|
|
1014
|
-
/**
|
|
1015
|
-
* Default icon source. Accepts an HTTPS URL, data URI, relative path, or asset reference. Used as the fallback when a themed (Light/Dark) variant isn't set. Catalog metadata for authoring UIs: engines do not draw icons.
|
|
1016
|
-
*/
|
|
1017
|
-
icon?: string;
|
|
1018
|
-
/**
|
|
1019
|
-
* Light-colored icon variant intended for authoring UIs that draw the icon on dark backgrounds (engines do not draw icons).
|
|
1020
|
-
*/
|
|
1021
|
-
iconLight?: string;
|
|
1022
|
-
/**
|
|
1023
|
-
* Dark-colored icon variant intended for authoring UIs that draw the icon on light backgrounds (engines do not draw icons).
|
|
1024
|
-
*/
|
|
1025
|
-
iconDark?: string;
|
|
1026
922
|
/**
|
|
1027
923
|
* Free-form labels for filtering and search.
|
|
1028
924
|
*/
|
|
@@ -1259,7 +1155,7 @@ interface ColorScheme {
|
|
|
1259
1155
|
}
|
|
1260
1156
|
|
|
1261
1157
|
/**
|
|
1262
|
-
* Schema for font-scheme records in the pptx.gallery library. Each scheme pairs a major (heading) and minor (body) font family in the OOXML majorFont/minorFont sense, scoped to a target app (
|
|
1158
|
+
* Schema for font-scheme records in the pptx.gallery library. Each scheme pairs a major (heading) and minor (body) font family in the OOXML majorFont/minorFont sense, scoped to a target app (powerpoint or google-slides) and a language family (Latin, East Asian, or Complex Script). Font schemes are referenced from OPF documents via design.fontScheme or design.fontScheme.id; the engine resolves the reference against catalogs.fontSchemes (inline) → catalogs.fontSchemes.source → the default catalog at https://www.pptx.gallery/font-schemes. Role overrides on design.fontScheme (heading, body, accent, code), each a font family name, take precedence over the resolved scheme.
|
|
1263
1159
|
*/
|
|
1264
1160
|
interface FontScheme {
|
|
1265
1161
|
/**
|
|
@@ -1300,27 +1196,9 @@ interface FontScheme {
|
|
|
1300
1196
|
*/
|
|
1301
1197
|
minor: string;
|
|
1302
1198
|
/**
|
|
1303
|
-
* Optional monospaced font for code blocks and inline code. It has the same shape as the OPF FontScheme 'code' role, so a record and an inline design.fontScheme override are interchangeable. OOXML has no code slot, so exporters write this family on code runs. When neither design.fontScheme nor the resolved record defines 'code', engines fall back to Roboto Mono.
|
|
1199
|
+
* Optional monospaced font family name for code blocks and for inline code runs (TextRun.code). It has the same shape as the OPF FontScheme 'code' role, so a record and an inline design.fontScheme override are interchangeable. OOXML has no code slot, so exporters write this family on code runs. When neither design.fontScheme nor the resolved record defines 'code', engines fall back to Roboto Mono.
|
|
1304
1200
|
*/
|
|
1305
|
-
code?:
|
|
1306
|
-
/**
|
|
1307
|
-
* Monospaced font family name.
|
|
1308
|
-
*/
|
|
1309
|
-
family: string;
|
|
1310
|
-
/**
|
|
1311
|
-
* Numeric font weight (e.g., 400 for regular, 700 for bold).
|
|
1312
|
-
*/
|
|
1313
|
-
weight?: number;
|
|
1314
|
-
/**
|
|
1315
|
-
* Font style.
|
|
1316
|
-
*/
|
|
1317
|
-
style?: ("normal" | "italic");
|
|
1318
|
-
/**
|
|
1319
|
-
* Letter spacing (tracking) in ems.
|
|
1320
|
-
*/
|
|
1321
|
-
letterSpacing?: number;
|
|
1322
|
-
[k: string]: unknown;
|
|
1323
|
-
};
|
|
1201
|
+
code?: string;
|
|
1324
1202
|
/**
|
|
1325
1203
|
* East Asian script fonts. Maps to the OOXML a:ea element of majorFont (major) and minorFont (minor), and to run-level a:ea. When set, they fill the eastAsian slot for every language; when omitted, the slot comes from this scheme's own major/minor when languageFamily is 'ea' and the scheme's languages list is empty or names the presentation language, then from the presentation language's font scheme for East Asian languages, and otherwise from the latin (major/minor) families. A missing 'major' or 'minor' falls back to the other.
|
|
1326
1204
|
*/
|
|
@@ -1352,15 +1230,15 @@ interface FontScheme {
|
|
|
1352
1230
|
*/
|
|
1353
1231
|
type?: ("sans-serif" | "serif" | "monospace");
|
|
1354
1232
|
/**
|
|
1355
|
-
* Target application this font pairing is intended for.
|
|
1233
|
+
* Target application this font pairing is intended for. Metadata for pickers and catalog filters: no engine changes its output by it.
|
|
1356
1234
|
*/
|
|
1357
|
-
app?: ("
|
|
1235
|
+
app?: ("powerpoint" | "google-slides");
|
|
1358
1236
|
/**
|
|
1359
|
-
*
|
|
1237
|
+
* Font-language family this scheme is intended for: 'latin' for Latin-script content, 'ea' (or 'eastAsian', the same value) for East Asian scripts, 'cs' (or 'complexScript', the same value) for Complex Scripts. The long names match the 'eastAsian' and 'complexScript' slot keys; the short names match the OOXML a:ea and a:cs elements; core reads both spellings as one value. As the design font scheme, an 'ea'/'eastAsian' or 'cs'/'complexScript' scheme also fills that script slot with its own major/minor families when its languages list is empty or names the presentation language.
|
|
1360
1238
|
*/
|
|
1361
|
-
languageFamily?: ("latin" | "ea" | "cs");
|
|
1239
|
+
languageFamily?: ("latin" | "ea" | "cs" | "eastAsian" | "complexScript");
|
|
1362
1240
|
/**
|
|
1363
|
-
* Optional list of
|
|
1241
|
+
* Optional list of languages catalog ids (see the languages catalog, https://www.pptx.gallery/languages) this scheme is curated for. Useful for picker UIs that group fonts by language coverage. As the design font scheme, an 'ea' or 'cs' scheme fills its script slot only when this list is empty or names the presentation language by id.
|
|
1364
1242
|
*/
|
|
1365
1243
|
languages?: string[];
|
|
1366
1244
|
/**
|
|
@@ -1462,4 +1340,4 @@ interface CatalogEntry {
|
|
|
1462
1340
|
}
|
|
1463
1341
|
declare const catalogEntries: readonly CatalogEntry[];
|
|
1464
1342
|
|
|
1465
|
-
export { type Audience as A, type CatalogKind as C, type FontScheme as F, type Language as L, type Narrative as N, type Purpose as P, type SocialPlatform as S, type Theme as T, type
|
|
1343
|
+
export { type Audience as A, type CatalogKind as C, type FontScheme as F, type Language as L, type Narrative as N, type Purpose as P, type SocialPlatform as S, type Theme as T, type ChartType as a, type ColorScheme as b, type Layout as c, type Tone as d, type CatalogEntry as e, type CatalogIndex as f, type CatalogIndexRecord as g, type CatalogRecord as h, audiences as i, catalogEntries as j, catalogIndexes as k, catalogKinds as l, catalogSchemaNames as m, catalogs as n, chartTypes as o, colorSchemes as p, fontSchemes as q, languages as r, layouts as s, narratives as t, purposes as u, socialPlatforms as v, themes as w, tones as x };
|
package/dist/catalogs.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import './schemas-
|
|
1
|
+
export { e as CatalogEntry, f as CatalogIndex, g as CatalogIndexRecord, C as CatalogKind, h as CatalogRecord, i as audiences, j as catalogEntries, k as catalogIndexes, l as catalogKinds, m as catalogSchemaNames, n as catalogs, o as chartTypes, p as colorSchemes, q as fontSchemes, r as languages, s as layouts, t as narratives, u as purposes, v as socialPlatforms, w as themes, x as tones } from './catalogs-D-yyQWCQ.js';
|
|
2
|
+
import './schemas-DDpqAgyS.js';
|
package/dist/catalogs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import './chunk-S5W34SIJ.js';
|
|
2
|
-
export { audiences, catalogEntries, catalogIndexes, catalogKinds, catalogSchemaNames, catalogs, chartTypes, colorSchemes, fontSchemes, languages, layouts, narratives, purposes, socialPlatforms, themes, tones } from './chunk-
|
|
2
|
+
export { audiences, catalogEntries, catalogIndexes, catalogKinds, catalogSchemaNames, catalogs, chartTypes, colorSchemes, fontSchemes, languages, layouts, narratives, purposes, socialPlatforms, themes, tones } from './chunk-XOZ4KMSR.js';
|